
#ifndef EXTENTIONEDITOR_H
#define EXTENTIONEDITOR_H

#include <BLineEdit>
#include <BComboBox>
#include <BTableWidget>
#include <BDialog>

using namespace BWE;

class ExtentionEditor : public BDialog
{
	BOBJECT(ExtentionEditor);
public:
	ExtentionEditor(BWidget* parent = 0);
	~ExtentionEditor();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);

	void slotInsertButtonClicked(BObject* object, const BValue& value);
	void slotRemoveButtonClicked(BObject* object, const BValue& value);

	void slotTableItemClicked(BObject* object, const BValue& value);
	void slotEditWidgetFocused(BObject* object, const BValue& value);
	void slotLineEditFinished(BObject* object, const BValue& value);
	void slotStyleComboItemClicked(BObject* object, const BValue& value);

	void slotConfirmButtonClicked(BObject* object, const BValue& value);
	void slotApplyButtonClicked(BObject* object, const BValue& value);
	void slotCancelButtonClicked(BObject* object, const BValue& value);

private:
	BTableWidget*		_tableWidget;
	BLineEdit*			_lineEdit;
	BComboBox*			_styleComboBox;

	BButton*			_insertButton;
	BButton*			_removeButton;

	BButton*			_confirmButton;
	BButton*			_applyButton;
	BButton*			_cancelButton;

};

#endif
